﻿using FluentNHibernate.Automapping;
using FluentNHibernate.Automapping.Alterations;
using FluentNHibernate.Mapping;
using good1.Core;
using good1.Core.Enums;

namespace good1.Data.NHibernateMaps.Explicit
{
    public class DonorMap : SubclassMap<Donor>, IAutoMappingOverride<Donor>
    {
        public void Override(AutoMapping<Donor> mapping)
        {
            mapping.Table("Donors");

            DiscriminatorValue((int)GoodRoles.Donor);
            
        }
    }

}
